#include "AnimationInfo.h"
#include "AnimationManager.h"
#include <cassert>

CAnimationInfo::CAnimationInfo(void)
{
	//m_pAnimManager = CAnimationManager::GetInstance();
	m_nCurrFrame = 0;
	m_fTimeWaited = 0.0f;
	m_pAnimation = nullptr;
	m_pFrame = nullptr;
	

}

CAnimationInfo::~CAnimationInfo(void)
{
	
}

void CAnimationInfo::AddRef( void )
{
	// Increase the reference 
	m_unRefCount++;

}
void CAnimationInfo::Release( void )
{
	// Decrease the reference count (-1 friend :(  ... )
	m_unRefCount--;

	// Self-destruct when the count reaches 0
	if( m_unRefCount == 0 )
		delete this;

}
